# !/usr/bin python3
# encoding: utf-8 -*-
# @file     : complains_apis.py
# @author   : 沙陌 Matongxue_2
# @Time     : 2023/8/19 15:41
# @Copyright: 北京码同学


from api.base_api import BaseSellerApi


class AppealComplainsApi(BaseSellerApi):
    """
    商家申诉接口
    """
    def __init__(self,id):
        super().__init__()
        self.url = f'{self.host}/seller/trade/order-complains/{id}/appeal'
        self.method = 'put'
        self.data={
            "appeal_content":"他说的不对，我都好着呢",
            "images":[]
        }

class ComplainCommunicationApi(BaseSellerApi):

    def __init__(self,id):
        super().__init__()
        self.url = f'{self.host}/seller/trade/order-complains/{id}/communication'
        self.method = 'put'
        self.data = {
            "content":'这是对话内容，你放屁'
        }
